cmake_minimum_required(VERSION 3.22)
project(common VERSION 0.1.1 DESCRIPTION "common_lib" LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)

find_package(glog CONFIG REQUIRED)

# log library
add_library(log SHARED
        log.h
        log.cc
)
set_target_properties(log PROPERTIES
        VERSION 0.1.1
        SOVERSION 0
)
target_link_libraries(log
        glog::glog
)
target_include_directories(log
    PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
)

# utils library
add_library(utils
        utils.cpp
)
target_include_directories(utils
        PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
)

#add_library(macro
#        macro.h
#)
